package chapter01;

import java.util.Scanner;

public class Test05_SplitNumber {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个三位数");
        int number = scanner.nextInt();
        //123
        int bai = number/100;
        int shi = number%100/10; //123%100==23/10==2
        int ge = number%10;
        System.out.println("三位数的百位："+bai+",十位："+shi+",个位："+ge);
    }
}
